#define _CRT_SECURE_NO_WARNINGS 1
#pragma once
#include<iostream>
#include<assert.h>
using namespace std;




namespace ltw
{
	class string
	{
	public:
        typedef char* iterator;
        iterator begin();
        iterator end();

		// string();
		string(const char* str = "");
		~string();
        const char* c_str() const;

        size_t size()const;
        char& operator[](size_t pos);
        
	private:
		// char _buff[16];
		char* _str;

		size_t _size;
		size_t _capacity;
	};
}